home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / utility / utilcli / stringer.lha / Stringer21 / start_vinci.rexx < prev    next >
OS/2 REXX Batch file  |  1996-10-08  |  735b  |  26 lines

  1. /*
  2.  * Stringer example AREXX script to use with the text viewer
  3.  * Vinci by Martin Wulffeld (tested with v2.4)
  4.  *
  5.  * Displays a Textfile in Vinci and jumps to the match location
  6.  *
  7.  * To use this script to start Vinci as your default pager
  8.  * edit your default pager line in ENV:Stringer.prefs to this:
  9.  *
  10.  * rx >NIL: rexx:start_vinci.rexx "%s" "%f"
  11.  *
  12.  * Since Vinci has no ARexx or CLI option to jump to a direct
  13.  * place in a textfile, I use Vinci's ARexx command SEARCH.
  14.  * Vinci must be in your search path for this script to work.
  15.  *
  16. */
  17.  
  18. OPTIONS RESULTS
  19. PARSE ARG arguments
  20. PARSE VAR arguments string filename
  21.  
  22. ADDRESS COMMAND 'Run >NIL: Vinci 'filename
  23. ADDRESS COMMAND 'WaitForPort VINCI'
  24. ADDRESS VINCI 'SEARCH S='string
  25. RETURN
  26.